package com.xpc.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xpc.mapper.UserMapper;
import com.xpc.pojo.User;
import com.xpc.service.IUserService;
import com.xpc.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Project：CourseProject
 * Date：2022/4/13
 * Time：22:56
 * Description：TODO
 *
 * @author 南北辰的键盘
 * @version 1.0
 */

@Service
public class UserServiceImpl extends ServiceImpl<UserMapper,User> implements IUserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public Page<User> getPage(int currentPage, int pageSize) {
        Page page = new Page(currentPage, pageSize);
        userMapper.selectPage(page,null);
        return page;
    }
}
